import axios from './config';

// 登录接口
export const login = (username, password) => {
  return axios.post('/login', { username, password });
};

// 获取用户信息接口
export const getUserInfo = () => {
  return axios.get('/user');
};